<?php echo $header; ?>
<div class="container">
  <div class="row">
    <div id="content" class="col-sm-12"><?php echo $content_top; ?>
      <div class="nav-bar breadcrumb"><?php echo $heading_title; ?></div>
      <div class="row widget reward-widget">
        <div class="col-xs-12">
          <div class="reward-title">
            <?php echo $text_total; ?>
          </div>
          <div class="reward-number">
            <?php echo $total; ?>
          </div>
        </div>
      </div>

      <div class="row widget">
        <div class="col-xs-12">
          <ul class="reward-details">
            <?php if ($rewards) { ?>
            <?php foreach ($rewards  as $reward) { ?>
            <li>
              <div class="reward-description">
                <div class="description-title">
                <?php if ($reward['order_id']) { ?>
                <a href="<?php echo $reward['href']; ?>"><?php echo $reward['description']; ?></a>
                <?php } else { ?>
                <?php echo $reward['description']; ?>
                <?php } ?>
                </div>
                <span>
                  <?php echo $reward['date_added']; ?>
                </span>
              </div>
              <span class="reward-points">
                <?php echo $reward['points']; ?>
              </span>
            </li>
            <?php } ?>
            <?php } else { ?>
            <div class="text-center">
              <?php echo $text_empty; ?>
            </div>
            <?php } ?>
          </ul>
        </div>
      </div>
      <?php if ($pagination): ?>
      <div class="row">
        <div class="col-sm-12 text-center"><?php echo $pagination; ?></div>
      </div>
      <?php endif ?>
      <?php echo $content_bottom; ?></div>
    </div>
</div>
<?php echo $footer; ?>
